package com.ruoyi.job.task;

import com.ruoyi.auto.api.RemoteAutoPublishProductService;
import com.ruoyi.gather.api.RemoteGatherProductService;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;
import java.util.Date;

/**
 * 店铺运营手动执行计划定时任务调度
 *
 * @Author: j.zh
 * @Date: 2024/3/18
 * @Version: 1.0
 */
@Component("sellerPublishProductTask")
public class SellerPublishProductTask {

    @Resource
    private RemoteGatherProductService remoteGatherProductService;

    /**
     * 执行自动化任务
     */
    public void sellerPublishProduct() {
        System.out.println("开始执行任务 sellerPublishProduct（"+new Date()+"）");
        remoteGatherProductService.sellerPublishProduct();
    }



}
